package com.example.graduationdesign.chat;


import com.example.graduationdesign.utils.CommonUtil;
import lombok.Data;

/**
 * 消息
 */
@Data
public class Message {
    /* 发送方编码 */
    private String sender;
    /* 接收方编码 */
    private String receiver;
    /* 消息内容 */
    private String message;
    /* 是否是群发 */
    private Boolean group;
    /* 通讯录 */
    private Boolean userList;
    /* 创建时间 */
    private String createTime;
    /* 客服上线 */
    private Boolean serviceOnline;
    /* 学员上线 */
    private Boolean traineeOnline;

    public Message() {
        this.group = false;
        this.userList = false;
        this.createTime = CommonUtil.GenerateSpecifiedTimeFormat("yyyy-MM-dd HH:mm:ss");
    }
}
